import request from '@/utils/request'

export default {
    login(data) {
	  return request({
	    url: "/login" ,
	    method: 'post',
		data
	  })
	},
	getInfo() {
	  return request({
	    url: 'auth/info',
	    method: 'get'
	  })
	},
	
	getCodeImg() {
	  return request({
	    url: 'auth/code',
	    method: 'get'
	  })
	},
	
	logout() {
	  return request({
	    url: 'auth/logout',
	    method: 'delete'
	  })
	},
	


}

